<template>
  <div>
    <!-- 面包屑导航区域 -->
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>商品管理</el-breadcrumb-item>
      <el-breadcrumb-item>商品分类</el-breadcrumb-item>
    </el-breadcrumb>

    <!-- 卡片视图区域 -->
    <el-card>
      <el-row>
        <el-col>
          <el-button type="primary" @click="showAddCateDialog"
            >添加分类</el-button
          >
        </el-col>
      </el-row>
    </el-card>
  </div>
</template>

<script>
import { getCategories } from "../../utils/api";
export default {
  data() {
    return {};
  },
  created() {
    this.getCateList();
  },
  methods: {
    // 获取商品分类数据
    getCateList() {
      getCategories().then((res) => {
        console.log(res);
      });
    },
    showAddCateDialog() {},
  },
};
</script>

<style lang="scss" scoped>
</style>